package com.ruoyi.cderp.domain;

import java.math.BigDecimal;
import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 销售退单对象 tbl_sale_return
 *
 * @author ruoyi
 * @date 2025-03-31
 */
public class TblSaleReturn extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private String id;

    /** 单号 */
    @Excel(name = "单号")
    private String code;

    /** 门店 */
    @Excel(name = "门店")
    private String scId;

    private String scCode;

    private String scName;

    // 门店id
    private String shopId;

    /** 门店编号 */
    private String shopCode;

    /** 门店名称 */
    private String shopName;

    /** 客户ID */
    @Excel(name = "客户ID")
    private String customerId;

    private String customerCode;

    private String customerName;

    /** 销售员ID */
    @Excel(name = "销售员ID")
    private String salerId;

    private String salerName;

    /** 付款日期 */
    private Date paymentDate;

    /** 出库单ID */
    @Excel(name = "出库单ID")
    private String outSheetId;

    /** 商品数量 */
    @Excel(name = "商品数量")
    private Long totalNum;

    /** 赠品数量 */
    @Excel(name = "赠品数量")
    private Long totalGiftNum;

    /** 退货金额 */
    @Excel(name = "退货金额")
    private BigDecimal totalAmount;

    /** 备注 */
    @Excel(name = "备注")
    private String description;

    /** 创建人ID */
    private String createById;

    private String createBy;

    private Date createTime;

    // 创建最早时间
    private Date createMinTime;

    // 创建最晚时间
    private Date createMaxTime;

    /** 修改人ID */
    private String updateById;

    /** 审核人 */
    @Excel(name = "审核人")
    private String approveBy;

    /** 审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date approveTime;

    // 审核最早时间
    private Date approveMinTime;

    // 审核最晚时间
    private Date approveMaxTime;

    /** 状态 */
    @Excel(name = "状态")
    private Integer status;

    /** 拒绝原因 */
    private String refuseReason;

    /** 结算状态 */
    @Excel(name = "结算状态")
    private Integer settleStatus;

    /** 事务ID */
    private String txId;

    /** 结算状态中间态 */
    private Integer oriSettleStatus;

    /** 销售退单明细信息 */
    private List<TblSaleReturnDetail> tblSaleReturnDetailList;

    public String getShopId() {
        return shopId;
    }

    public void setShopId(String shopId) {
        this.shopId = shopId;
    }

    public String getShopCode() {
        return shopCode;
    }

    public void setShopCode(String shopCode) {
        this.shopCode = shopCode;
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public String getScCode() {
        return scCode;
    }

    public void setScCode(String scCode) {
        this.scCode = scCode;
    }

    public String getScName() {
        return scName;
    }

    public void setScName(String scName) {
        this.scName = scName;
    }

    public String getCustomerCode() {
        return customerCode;
    }

    public void setCustomerCode(String customerCode) {
        this.customerCode = customerCode;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public String getSalerName() {
        return salerName;
    }

    public void setSalerName(String salerName) {
        this.salerName = salerName;
    }

    @Override
    public String getCreateBy() {
        return createBy;
    }

    @Override
    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getCreateMinTime() {
        return createMinTime;
    }

    public void setCreateMinTime(Date createMinTime) {
        this.createMinTime = createMinTime;
    }

    public Date getCreateMaxTime() {
        return createMaxTime;
    }

    public void setCreateMaxTime(Date createMaxTime) {
        this.createMaxTime = createMaxTime;
    }

    public Date getApproveMinTime() {
        return approveMinTime;
    }

    public void setApproveMinTime(Date approveMinTime) {
        this.approveMinTime = approveMinTime;
    }

    public Date getApproveMaxTime() {
        return approveMaxTime;
    }

    public void setApproveMaxTime(Date approveMaxTime) {
        this.approveMaxTime = approveMaxTime;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setCode(String code)
    {
        this.code = code;
    }

    public String getCode()
    {
        return code;
    }
    public void setScId(String scId)
    {
        this.scId = scId;
    }

    public String getScId()
    {
        return scId;
    }
    public void setCustomerId(String customerId)
    {
        this.customerId = customerId;
    }

    public String getCustomerId()
    {
        return customerId;
    }
    public void setSalerId(String salerId)
    {
        this.salerId = salerId;
    }

    public String getSalerId()
    {
        return salerId;
    }
    public void setPaymentDate(Date paymentDate)
    {
        this.paymentDate = paymentDate;
    }

    public Date getPaymentDate()
    {
        return paymentDate;
    }
    public void setOutSheetId(String outSheetId)
    {
        this.outSheetId = outSheetId;
    }

    public String getOutSheetId()
    {
        return outSheetId;
    }
    public void setTotalNum(Long totalNum)
    {
        this.totalNum = totalNum;
    }

    public Long getTotalNum()
    {
        return totalNum;
    }
    public void setTotalGiftNum(Long totalGiftNum)
    {
        this.totalGiftNum = totalGiftNum;
    }

    public Long getTotalGiftNum()
    {
        return totalGiftNum;
    }
    public void setTotalAmount(BigDecimal totalAmount)
    {
        this.totalAmount = totalAmount;
    }

    public BigDecimal getTotalAmount()
    {
        return totalAmount;
    }
    public void setDescription(String description)
    {
        this.description = description;
    }

    public String getDescription()
    {
        return description;
    }
    public void setCreateById(String createById)
    {
        this.createById = createById;
    }

    public String getCreateById()
    {
        return createById;
    }
    public void setUpdateById(String updateById)
    {
        this.updateById = updateById;
    }

    public String getUpdateById()
    {
        return updateById;
    }
    public void setApproveBy(String approveBy)
    {
        this.approveBy = approveBy;
    }

    public String getApproveBy()
    {
        return approveBy;
    }
    public void setApproveTime(Date approveTime)
    {
        this.approveTime = approveTime;
    }

    public Date getApproveTime()
    {
        return approveTime;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }
    public void setRefuseReason(String refuseReason)
    {
        this.refuseReason = refuseReason;
    }

    public String getRefuseReason()
    {
        return refuseReason;
    }
    public void setSettleStatus(Integer settleStatus)
    {
        this.settleStatus = settleStatus;
    }

    public Integer getSettleStatus()
    {
        return settleStatus;
    }
    public void setTxId(String txId)
    {
        this.txId = txId;
    }

    public String getTxId()
    {
        return txId;
    }
    public void setOriSettleStatus(Integer oriSettleStatus)
    {
        this.oriSettleStatus = oriSettleStatus;
    }

    public Integer getOriSettleStatus()
    {
        return oriSettleStatus;
    }

    public List<TblSaleReturnDetail> getTblSaleReturnDetailList()
    {
        return tblSaleReturnDetailList;
    }

    public void setTblSaleReturnDetailList(List<TblSaleReturnDetail> tblSaleReturnDetailList)
    {
        this.tblSaleReturnDetailList = tblSaleReturnDetailList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("scId", getScId())
                .append("scCode", getScCode())
                .append("scName", getScName())
                .append("shopId", getShopId())
                .append("shopCode", getShopCode())
                .append("shopName", getShopName())
            .append("customerId", getCustomerId())
                .append("customerCode", getCustomerCode())
                .append("customerName", getCustomerName())
            .append("salerId", getSalerId())
                .append("salerName", getSalerName())
            .append("paymentDate", getPaymentDate())
            .append("outSheetId", getOutSheetId())
            .append("totalNum", getTotalNum())
            .append("totalGiftNum", getTotalGiftNum())
            .append("totalAmount", getTotalAmount())
            .append("description", getDescription())
            .append("createBy", getCreateBy())
            .append("createById", getCreateById())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateById", getUpdateById())
            .append("updateTime", getUpdateTime())
            .append("approveBy", getApproveBy())
            .append("approveTime", getApproveTime())
            .append("status", getStatus())
            .append("refuseReason", getRefuseReason())
            .append("settleStatus", getSettleStatus())
            .append("txId", getTxId())
            .append("oriSettleStatus", getOriSettleStatus())
            .append("tblSaleReturnDetailList", getTblSaleReturnDetailList())
            .toString();
    }
}
